import 'package:flutter/material.dart';
import 'package:flutter_blog_manage_study/base/get/get_no_binding_view.dart';
import 'package:flutter_blog_manage_study/res/r.dart';
import 'package:flutter_blog_manage_study/ui/page/splash/splash_controller.dart';
import 'package:flutter_blog_manage_study/ui/page/splash/widget/splash_anim_widget.dart';
import 'package:flutter_blog_manage_study/util/screen_util.dart';

/// * 作者: Tao
/// * 日期: 2024/3/22
/// * 时间: 11:02
/// * 描述: 启动页 View
class SplashPage extends GetNoBindingView<SplashController> {
  const SplashPage({super.key});

  @override
  Widget buildWidget(BuildContext context) {
    // 设置状态栏透明
    ScreenUtil.removeSystemTransparent(context);
    // 预缓存背景图片
    precacheImage(const AssetImage(R.assetsImagesLoginBackground), context);
    return const Scaffold(
        backgroundColor: Colors.white, body: SplashAnimWidget());
  }
}
